package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.StrategyTag;
import cn.wolfcode.luowowo.article.mapper.StrategyTagMapper;
import cn.wolfcode.luowowo.article.service.IStrategyCatalogService;
import cn.wolfcode.luowowo.article.service.IStrategyTagService;
import cn.wolfcode.luowowo.common.query.QueryObject;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
@Service
public class StrategyTagServiceImpl implements IStrategyTagService {
    @Autowired
    private StrategyTagMapper strategyTagMapper;
    @Override
    public PageInfo query(QueryObject qo) {

        List<StrategyTag> list = strategyTagMapper.selectForList(qo);
        return new PageInfo(list);
    }

    @Override
    public List<StrategyTag> selectByDestId(Long destId) {
        return strategyTagMapper.selectByDestId(destId);
    }
}
